//路由接口文件
//引入axios工具
import service from "../../src/utils/request";
/**
 * 添加部门接口
 */
export function DepartmentAddApi(data) {
  return service.request({
    url: "/department/add/",
    method: "post",
    data, //请求类型为post时
    //params:data//请求类型为  get 时
  });
}

//删除
export function DeleteList(data) {
  return service.request({
    url: "/department/delete/",
    method: "post",
    data, //请求类型为post时
    //params:data//请求类型为  get 时
  });
}
//禁启用
export function Status(data) {
  return service.request({
    url: "/department/status/",
    method: "post",
    data, //请求类型为post时
    //params:data//请求类型为  get 时
  });
}

//详情
export function Detailed(data) {
  return service.request({
    url: "/department/detailed/",
    method: "post",
    data, //请求类型为post时
    //params:data//请求类型为  get 时
  });
}
//编辑
export function Edit(data) {
  return service.request({
    url: "/department/edit/",
    method: "post",
    data, //请求类型为post时
    //params:data//请求类型为  get 时
  });
}
